import 'package:dmz/base/pageWidget/base_stateful_widget.dart';
import 'package:dmz/business/home/controller/share_moto_controller.dart';
import 'package:dmz/business/home/widgets/share_input_widget.dart';
import 'package:dmz/business/home/widgets/share_main_widgets.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class SharInputPage extends BaseStatefulWidget<ShareMotoController> {
  const SharInputPage({super.key});

  @override
  bool showTitleBar() => true;

  @override
  String titleString() => '手机号输入'.tr;

  @override
  bool delectControll() => false;

  @override
  Widget buildContent(BuildContext context) {
    if (Get.arguments != null && Get.arguments is bool) {
      controller.saveController = Get.arguments as bool;
    }
    return ShareMotoWidgets.backGroundWidget(
      VerificationCodeInput(finished: controller.inputFinished),
    ).addGestureDetector(() => FocusManager.instance.primaryFocus?.unfocus());
  }
}
